import request from '@/utils/request'

// 查询库存日志列表
export function listStockLogs(query) {
  return request({
    url: '/products/stockLogs/list',
    method: 'get',
    params: query
  })
}

// 查询库存日志详细
export function getStockLogs(id) {
  return request({
    url: '/products/stockLogs/' + id,
    method: 'get'
  })
}

// 新增库存日志
export function addStockLogs(data) {
  return request({
    url: '/products/stockLogs',
    method: 'post',
    data: data
  })
}

// 修改库存日志
export function updateStockLogs(data) {
  return request({
    url: '/products/stockLogs',
    method: 'put',
    data: data
  })
}

// 删除库存日志
export function delStockLogs(id) {
  return request({
    url: '/products/stockLogs/' + id,
    method: 'delete'
  })
}
